package com.ych.dao;

import com.ych.beans.Alarm;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface AlarmDao{
    boolean addAlarm(Alarm alarm);

    List<Alarm> selectAlarm(Integer key, Date from, Date end);


    boolean selectBySensorId(Integer id);

    boolean updateAlarm(Alarm alarm);
}
